package com.qd.pay.domain;

import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

@Data
@Accessors(chain = true)
@ToString
public class CloseOrderDTO {
    /**
     * 订单ID
     */
    private String orderId;
    /**
     * 第三方订单ID
     */
    private String thirdPartyOrderId;
    /**
     * 公众号appId
     */
    private String appId;

    /**
     * 0微信1支付宝2天府银行
     */
    @NotNull(message = "订单类型不能为空")
    private Integer type;
    /**
     * 服务商号,由天府支付统一分配
     */
    private String partner;
    /**
     * 商户号，由天府支付统一分配
     */
    private String subPartner;

    public void freeData() {
        this.orderId = null;
        this.thirdPartyOrderId = null;
        this.appId = null;
        this.type = null;
        this.partner = null;
        this.subPartner = null;
    }
}
